package com.mdd.front.validate.address;

import com.mdd.front.validate.PageParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 用户地址参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserAddressPageParam extends PageParam {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "userId参数缺失")
    @DecimalMin(value = "0", message = "userId参数值不能少于0")
    private Long userId;

}
